(C, C++) Check for cast from non-struct pointer to struct pointer.